<html>

<head>
<title>Update ADD TO</title>
<link type="text/css" href="jquery-ui-1.8.13.custom/css/ui-lightness/jquery-ui-1.8.13.custom.css" rel="Stylesheet" />	
<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.13.custom/js/jquery-ui-1.8.13.custom.min.js"></script>
</head>
<body>
<script language="javascript">
function fncSubmit()
{
if(document.form1.med_id.value == "")
	{
	alert('Please input MEDICATION_ID');
		document.form1.med_id.focus();
		return false;
	}
if(document.form1.std_id.value == "")
	{
		alert('Please input GENARALP_ID');
		document.form1.std_id.focus();
		return false;
	}

document.form1.submit();
}

</script>
<br/>
<br/>
<center><h1>Update ADD TO</h1></center>
<br/>
<center><table border=3 bordercolor="#ff99cc">
<tr><td>

<?
	$conn = oci_connect("hospital", "hospital", "//localhost/XE"); 
	$call = "select * from ADD_TO where MEDICATION_ID = '".$_GET["ids"]."' ";
	$col = $_GET["ids"];     
	$pull = oci_parse($conn,$call);
	oci_execute($pull,OCI_DEFAULT);
	$total = oci_fetch_array($pull);
?>
        
<form name="form1" action="edit-addto.php?col=+<?echo $col?>" method="post" onSubmit="JavaScript:return fncSubmit();">
	MEDICATION_ID: <input type="text" name="med_id"  value = "<?=$total["MEDICATION_ID"];?>"  /><br/>
	GENARALP_ID: <input type="text" name="std_id"  value = "<?=$total["GENARALP_ID"];?>"  /><br/>
	
	<center><input type="submit" /></center>
	
</form>

</td></tr>
</table>
</body>
</html>
